import Vue from 'vue'
import vuexRouterSync from 'vuex-router-sync'

// console debug
// import 'vconsole'

import '../../less/test-style.less'


import App from './App.vue'

import router from '../../router/test'
import store from '../../vuex/test'

import filters from '../../utils/filters'
// 装载过滤器
Object.keys(filters).forEach(k => Vue.filter(k, filters[k]));

import directive from '../../utils/directive'
Object.keys(directive).forEach(k => Vue.directive(k, directive[k]));

import global from '../../plugins/global'
Vue.use(global);

vuexRouterSync.sync(store, router);

new Vue(Vue.util.extend({
    router,
    store
}, App)).$mount('#root')




